package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.UserInfoMapper;
import com.shunbo.convenient.service.UserInfoService;
import com.shunbo.convenient.vo.UserInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    private UserInfoMapper userInfoMapper;

    @Override
    public Integer save(UserInfo obj) {
        return userInfoMapper.save(obj);
    }

    @Override
    public Integer update(UserInfo obj) {
        return userInfoMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return userInfoMapper.delete(obj);
    }

    @Override
    public UserInfo findById(String obj) {
        return userInfoMapper.findById(obj);
    }

    @Override
    public List<UserInfo> findAll(UserInfo obj) {
        return userInfoMapper.findAll(obj);
    }

    @Override
    public UserInfo findByToken(UserInfo userInfo) {
        return userInfoMapper.findByToken(userInfo);
    }
}
